/*
 * Copyright (C) 2010-2011 Comcast Cable.  All Rights Reserved.
 */
package com.hercules.android.receiver.model.objects;

/**
 * <p>The class represents the animating an object's size over time. It is a simple JavaBean (POJO) that provides
 * getters and setters for all private attributes and performs no argument validation in the setters.</p>
 *
 * <p><strong>Thread safety:</strong> This class is mutable and not thread safe.</p>
 *
 * @author saarixx, jmn
 * @version 1.0
 */
public class XREDimensionsAnimation extends XREAnimationResource {

    /**
     * <p>The desired width value at the end of the animation, in pixels.</p>
     *
     * <p>Can be any value.</p>
     *
     * <p>Has getter and setter.</p>
     */
    private int width;

    /**
     * <p>The desired height value at the end of the animation, in pixels.</p>
     *
     * <p>Can be any value.</p>
     *
     * <p>Has getter and setter.</p>
     */
    private int height;

    /**
     * <p>Creates new instance of {@link XREDimensionsAnimation} class.</p>
     */
    public XREDimensionsAnimation() {
        // empty constructor
    }

    /**
     * <p>Retrieves the desired width value at the end of the animation, in pixels.</p>
     *
     * @return the desired width value at the end of the animation, in pixels
     */
    public int getWidth() {
        return width;
    }

    /**
     * <p>Sets the desired width value at the end of the animation, in pixels.</p>
     *
     * @param width the desired width value at the end of the animation, in pixels
     */
    public void setWidth(int width) {
        this.width = width;
    }

    /**
     * <p>Retrieves the desired height value at the end of the animation, in pixels.</p>
     *
     * @return the desired height value at the end of the animation, in pixels
     */
    public int getHeight() {
        return height;
    }

    /**
     * <p>Sets the desired height value at the end of the animation, in pixels.</p>
     *
     * @param height the desired height value at the end of the animation, in pixels
     */
    public void setHeight(int height) {
        this.height = height;
    }
}

